﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShowProducts.ascx.cs" Inherits="UserControlSupport_NewsProducts" %>
<%@ Register assembly="CollectionPager" namespace="SiteUtils" tagprefix="cc1" %>
<div id="product-page">
	<div id="product-list">
		<asp:DataList ID="ddlShowProducts" runat="server" RepeatColumns="3" onitemdatabound="ddlShowProducts_ItemDataBound" RepeatLayout="Flow">
			<ItemTemplate>
				<div class="product">
					<asp:Image CssClass="product-image" ID="_ProImage" runat="server" 
                        ImageUrl="<%# Bind('ProImage') %>" AlternateText="Chưa có hình"></asp:Image>
					<div class="product-infor">
						<asp:HyperLink ID="_ProName" runat="server" Text="<%# Bind('ProName') %>"></asp:HyperLink>
						<br>Trang Phục <asp:Literal ID="_usefor" runat="server" 
                            Text="<%# Bind('usefor') %>"></asp:Literal>
						<br>Giới Tính:<asp:Label ID="_gender" runat="server" 
                            Text="<%# Bind('gender') %>"></asp:Label>
		                <br />
                        Lượt xem:<asp:Label ID="view" runat="server" Text="<%# Bind('view') %>"></asp:Label>
&nbsp;<asp:HiddenField ID="_ProId" runat="server" Value="<%# Bind('ProId') %>" />
	                </div>
                </div>
			</ItemTemplate>
		</asp:DataList>
	</div>
	<div style="clear: both"></div>
	<div id="product-pagination">
		<cc1:CollectionPager ID="CollectionPager1" runat="server" 
                BackNextDisplay="HyperLinks" BackText="« Trang Trước" FirstText="Trang Đầu" 
                LabelText="|| Trang :" LastText="Trang Cuối" NextText="|| Tiếp Theo »" 
                PagingMode="PostBack" ResultsFormat="" UseSlider="True" MaxPages="5" 
                PageSize="12" BackNextLinkSeparator="" BackNextLocation="Split" 
                ShowFirstLast="True">
			
		</cc1:CollectionPager>
	</div>
</div>    
